//主面板的IPC事件
const { BrowserWindow,ipcMain } = require("electron");
module.exports = () => {
  //异步：监听触发主面板隐藏或显示
  ipcMain.on("MAIN-PAD-VISIABLE", function (event, arg) {
    const window = BrowserWindow.getAllWindows().find((e) => e.webContents.id == 1);
    window.setBounds({ x: arg === "hide" ? -60 : 0 }, true);
  });
};
